<!doctype html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/include/taglibs.jsp" %>
<%--@elvariable id="actionBean" type="com.goodedeeds.webapp.controller.BaseAction"--%>
<html>
	<head>

        <title>${actionBean.title}</title>
		<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/quiggle.css" />

        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery/jquery-1.7.2.min.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery/jquery-ui-1.8.21.custom.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.tools.min-1.2.7.js"></script>

		<script type="text/javascript" src="${pageContext.request.contextPath}/js/quiggle.js"></script>
		
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.ketchup.all.min.js"></script>
		
		<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/jquery.ketchup.css" />


		<c:if test="${!empty actionBean.cssFiles}">
			<c:forEach items="${actionBean.cssFiles}" var="cssFile">
				<link type="text/css" rel="stylesheet" href="${cssFile}" />
			</c:forEach>
		</c:if>

		<c:if test="${!empty actionBean.jsFiles}">
			<c:forEach items="${actionBean.jsFiles}" var="jsFile">
				<script type="text/javascript" src="${jsFile}"></script>
			</c:forEach>
		</c:if>

		<c:if test="${!empty actionBean.headerInclude}">
			<jsp:include page="${actionBean.headerInclude}"/>
		</c:if>

        <c:if test="${!empty actionBean.headerContent}">
            ${actionBean.headerContent}
        </c:if>

	</head>
	<body>
		<c:if test="${!empty actionBean.bodyContent}">
			<jsp:include page="${actionBean.bodyContent}"/>
		</c:if> 
	</body>
</html>